package cn.liyao.web.model;

import cn.liyao.web.constant.ReadStatus;
import lombok.Data;

import javax.persistence.*;
import java.sql.Timestamp;
import java.util.Date;



@Table(name = "t_messages")
@Data
@Entity
public class Messages {

    @Id
    @Column(unique = true,columnDefinition = "VARCHAR(64)")
    private String fp;

    @Column(name = "message_type")
    private Integer type;
    @Column( columnDefinition = "TEXT")
    private String dataContent;

    @Column(name = "sender", columnDefinition = "VARCHAR(64)")
    private String from;

    @Column(name = "receiver",columnDefinition = "VARCHAR(64)")
    private String to;

    private Integer typeu;


    private Long timestamp;


    @Transient
    private String readStatus;

}
